import axios from 'axios'

export const getAlluser = () => {
  return axios({
    method: 'post',
    url: '/api/User_list',
    params: {
      pageIndex: 1,
      pageSize: 8
    }
  })
}
// 删除
export const delUser = (id) => {
  return axios({
    method: 'get',
    url: '/api/User_delete',
    params: {
      id
    }
  })
}
// 分页查询
export const userList = (index) => {
  return axios({
    method: 'post',
    url: '/api/User_list',
    params: {
      pageIndex: index,
      pageSize: 8
    }
  })
}
